package com.eric.baomidou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eric.baomidou.entity.Order;
import org.apache.ibatis.annotations.Param;

/**
 * @author chenw-i
 * @version 1.0.0
 * @ClassName OrderMapper.java
 * @Description TODO
 * @createTime 2020年07月24日 16:18:00
 */
public interface OrderMapper extends BaseMapper<Order> {

    Order selectById(@Param("id") Long id);
    Order selectByIdAndTenantId(@Param("id") Long id,@Param("tenantId") Long tanentId);
    Order select(@Param("id") Long id,@Param("userId") Long userId,@Param("tenantId") Long tanentId);
    int insert(Order entity);

}
